/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright (c) 2023-present Kaleidos INC
*/

@import url("tools/typography.css");

.modal-wrapper {
  display: grid;
  grid-template-rows: auto 1fr auto;

  /* Required container height to allow grid children to overflow */

  /* Custom properties inherit from modal parent (height - padding(top and bottom) */
  max-block-size: calc(var(--modal-max-height) - (2 * var(--modal-padding)));
}

.modal-title {
  @mixin font-heading-3;

  &:focus-visible {
    box-shadow: inset 0 0 0 2px var(--color-secondary);
    outline: 0;
  }
}

.permission-table {
  margin-block-end: var(--spacing-32);
  max-block-size: 65vh;
  overflow-y: auto;
}

.table-title {
  @mixin font-heading-4;
}

.explanation {
  @mixin font-paragraph;

  color: var(--color-gray80);
  display: block;
  margin-block-end: var(--spacing-16);
  text-align: start;
}

.btn-wrapper {
  display: flex;
  justify-content: flex-end;
}

.comparisson-table {
  border-collapse: collapse;
  border-spacing: 0;
  display: table;
  margin-block-end: var(--spacing-16);
}
